﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Tools_Default : PageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            try
            {
                this.txt_Area.Text = Company.StudyClub.BLL.Site.AreaLayer.Instance.LastRefreshedDate.ToLongTimeString();
            }
            catch
            {
                this.txt_Area.Text = "Error!";
            }
            try
            {
                this.txt_Config.Text = Company.StudyClub.BLL.Site.ConfigLayer.Instance.LastRefreshedDate.ToLongTimeString();
            }
            catch
            {
                this.txt_Config.Text = "Error!";
            }
            try
            {
                //this.txt_Region.Text = Company.StudyClub.BLL.Region.RegionBLL.Instance.LastRefreshedDate.ToLongTimeString();
            }
            catch
            {
                this.txt_Region.Text = "Error!";
            }
        }
    }

    public void DoRefreshA(object sender, System.EventArgs e)
    {
        Company.StudyClub.BLL.Site.AreaLayer.Instance.Refresh();
        Response.Redirect(this.Request.Url.ToString());
    }

    public void DoRefreshC(object sender, System.EventArgs e)
    {
        Company.StudyClub.BLL.Site.ConfigLayer.Instance.Refresh();
        Response.Redirect(this.Request.Url.ToString());
    }

    public void DoRefreshR(object sender, System.EventArgs e)
    {
        //Company.StudyClub.BLL.Region.RegionBLL.Instance.Refresh();
        //Response.Redirect(this.Request.Url.ToString());
    }
}
